package com.tuanzi.loan.business.service.banana.statistics.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tuanzi.loan.business.repository.banana.statistics.BananaCommonActivityRegisterRepository;
import com.tuanzi.loan.business.service.banana.statistics.BananaCommonActivityRegisterService;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.banana.statistics.BananaCommonActivityRegisterRequest;
import com.tuanzi.loan.vo.response.banana.statistics.BananaCommonActivityRegisterResponse;

@Service
@Transactional
@Retryable(value = { RetryException.class })
public class BananaCommonActivityRegisterServiceImpl implements BananaCommonActivityRegisterService {

	@Autowired
	private BananaCommonActivityRegisterRepository bananaCommonActivityRegisterRepository;

	@Override
	public Page<BananaCommonActivityRegisterResponse> list(PageSearcher<BananaCommonActivityRegisterRequest> pageSearcher) {
		return bananaCommonActivityRegisterRepository.list(pageSearcher.getSearchCondition(), pageSearcher.getPageable());
	}

}